package com.zhouheng.springbootdesignpattern.observerpattern;

/**
 * 具体的被观察者
 *
 * @author 周恒
 * @date 20190401 16:57:51
 * @since v1.0
 */
public class ConcreteSubject extends Subject {

    @Override
    protected void doSomething() {
        System.out.println("股票暴跌了");
        //通知所有交易者
        this.notifyObserver();
    }

}
